mixup during reorganization. when SIF_INITDOMAIN it should kcons_write_dom0
authorvhanquez@kneesa.uk.xensource.com <vhanquez@kneesa.uk.xensource.com>
Tue, 3 Jan 2006 13:03:35 +0000 (13:03 +0000)
committervhanquez@kneesa.uk.xensource.com <vhanquez@kneesa.uk.xensource.com>
Tue, 3 Jan 2006 13:03:35 +0000 (13:03 +0000)
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
linux-2.6-xen-sparse/drivers/xen/console/console.c

index 1c838f166ee3b0d87bdf6497e53010e63ef139fc..44ae31d087295b97c6174fd931b8828a05f84465 100644 (file)
@@ -315,12 +315,12 @@ static void __xencons_tx_flush(void)
        int sent, sz, work_done = 0;
 
        if (x_char) {
-               if (xen_start_info->flags & SIF_INITDOMAIN) {
+               if (xen_start_info->flags & SIF_INITDOMAIN)
+                       kcons_write_dom0(NULL, &x_char, 1);
+               else
                        while (x_char)
                                if (xencons_ring_send(&x_char, 1) == 1)
                                        break;
-               } else
-                       kcons_write_dom0(NULL, &x_char, 1);
                x_char = 0;
                work_done = 1;
        }